package com.hl.vcd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hl.vcd.entity.CollectionRecords;
import com.hl.vcd.entity.vo.CollectionRecordsDetail;

import java.util.List;

/**
 * @author 朱炫达
 */
public interface CollectionRecordsService extends IService<CollectionRecords> {
    public void addCollectionRecords(CollectionRecords collectionRecords);

    public void deleteCollectionRecordsByUserIdAndVideoId(String userId,String videoId);

    public IPage<CollectionRecordsDetail> getCollectionRecordsDetailByUserId(Page<CollectionRecordsDetail> page,String userId);

    public CollectionRecords getCollectionRecordsByUserIdAndVideoId(String userId,String videoId);
}
